package code.app
{
	import code.main.modle.config.ConfigData;
	import code.main.modle.hall.HallData;
	import code.main.modle.leve.LevelDm;
	import code.main.modle.table.Player;
	import code.main.modle.table.TableData;

	/**
	 *游戏数据模型 管理器
	 * @author YY
	 * 
	 */
	public class AppDmList
	{
		private static var _instance:AppDmList;
		private var _configDm:ConfigData;//配置文件
		private var _player:Player;//用户
		private var _hallData:HallData;//大厅数据
		private var _tableData:TableData;//游戏桌子信息
		private var _levelDm:LevelDm;//等级信息
		public function AppDmList(xx:XX)
		{
			_configDm = new ConfigData();
			_player = new Player();
			_hallData = new HallData();
			_tableData = new TableData();
			_levelDm = new LevelDm();
		}
		public static function getInstance():AppDmList {
			if(!_instance) {
				_instance = new AppDmList(new XX());
			}
			return _instance;
		}

		public function get configDm():ConfigData
		{
			return _configDm;
		}

		public function get player():Player
		{
			return _player;
		}

		public function get hallData():HallData
		{
			return _hallData;
		}

		public function set hallData(value:HallData):void
		{
			_hallData = value;
		}

		public function get tableData():TableData
		{
			return _tableData;
		}

		public function set tableData(value:TableData):void
		{
			_tableData = value;
		}

		public function get levelDm():LevelDm
		{
			return _levelDm;
		}

		public function set levelDm(value:LevelDm):void
		{
			_levelDm = value;
		}


	}
}
class XX{
	
}